<template>
	<view class="moyu_container">
		<image :src="imgUrl" mode=""></image>
	</view>
</template>

<script>
	import {getMoyu} from "../api/remoteApi.js"
	export default {
		data() {
			return {
				imgUrl:""
			}
		},
		mounted() {
			this.getData()
		},
		methods: {
			async getData(){
				const res = await getMoyu()
				console.log(res);
				if(res.code == 200){
					this.imgUrl = res.data
				}
			}
		}
	}
</script>

<style lang="less" scoped>
.moyu_container{
	padding: 20rpx;
	image{
		width: 100%;
		height: 90vh;
	}
}
</style>
